<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
    <title>${Inter.printOut('Application finished',session.language)}</title>
  </head>
  <body>
     <%  def picture = "merp_logo_small.png" %>
    <div class="logo">
          <a href="${link}" target="_blank" ><img src="${resource(dir:'images',file:picture)}" style="float:left; margin-left:10px;" alt="IDA" border="0" /></a>
           <!--the language button with flag and so on-->
           <div style="float:right">
            <g:btnLanguage language="${session.language}"  currentController="employee" currentView="applicationFinished" scheduleId="${params.scheduleId}"  employeeId="${params.employeeId}" ></g:btnLanguage>
           </div>
          </div>
    <hr>
    <%
      def schedule = Schedule.get(params.scheduleId)
      def course = schedule.course
    %>
    <h1>${Inter.printOut('You have successfully applied for the course',session.language)}: ${course.name} </h1>
    <h2>${Inter.printOut('Schedule',session.language)}: ${schedule}</h2>
    <br/>
    <form action="checkCivicNumber" method="post">
      <input type="hidden" name="employeeId" value="${params.employeeId}"/>
      <input type="submit"value="${Inter.printOut('Apply for another course',session.language)}" />
    </form>
  </body>
</html>
